<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <ul>
        <li>没用了</li>
    </ul>

    <script>
        const ul = document.querySelector('ul')
        //删除节点  删除元素必须通过父元素删除   父元素.removeChild(要删除的元素)
        ul.removeChild(ul.children[0])
    </script>
</body>
</html>